package com.cc.model.convert

import com.cc.model.FailRetryLog
import com.cc.model.dto.FailRetryLogDto
import org.mapstruct.*

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE, componentModel = MappingConstants.ComponentModel.SPRING)
abstract class FailRetryLogConvert {

    abstract fun toEntity(failRetryLogDto: FailRetryLogDto): FailRetryLog

    abstract fun toDto(failRetryLog: FailRetryLog): FailRetryLogDto

    @BeanMapping(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
    abstract fun partialUpdate(failRetryLogDto: FailRetryLogDto, @MappingTarget failRetryLog: FailRetryLog): FailRetryLog
}